﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using sgp.Models;

namespace sgp.Controllers
{
    public class RelatoriosController : Controller
    {
        private DbParoquia db = new DbParoquia();
        RelatoriosController rc = new RelatoriosController();
        //
        // GET: /Relatorios/

        public ActionResult Index()
        {
            return View();
        }
        
        public ActionResult relatorioData(string formaDoacao, DateTime dataInicio, DateTime dataFinal) {

            db.Doacoes.Where(p => p.FormaDoacao.Nome == formaDoacao && p.Data == dataInicio && p.Data == dataFinal);
            return View(db.Doacoes.Include("FormaDoacao"));
            
        }

        internal void relatorioData()
        {
            rc.relatorioData();
            throw new NotImplementedException();
        }
    }
}
